import { ref } from 'vue'
import { defineStore } from 'pinia'

export const login_auth_Store = defineStore('login_auth_list', () => {
  const caidan = ref([])
  const anniu = ref([])

  const set_caidan = (data) => {
    caidan.value = data
    console.log('pinia获取到的内容:::',caidan.value )
  }
  const remove_anniu = () => {
    caidan.value = []
  }
  return {
    caidan,
    anniu,
    set_caidan,
    remove_anniu
    }
},
 {
    persist:true
  }  
)